.class public Luk/co/deanwild/materialshowcaseview/AnimationFactory;
.super Ljava/lang/Object;
.source "AnimationFactory.java"

# interfaces
.implements Luk/co/deanwild/materialshowcaseview/IAnimationFactory;


# instance fields
.field private final interpolator:Landroid/view/animation/AccelerateDecelerateInterpolator;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 23
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 24
    new-instance v0, Landroid/view/animation/AccelerateDecelerateInterpolator;

    invoke-direct {v0}, Landroid/view/animation/AccelerateDecelerateInterpolator;-><init>()V

    iput-object v0, p0, Luk/co/deanwild/materialshowcaseview/AnimationFactory;->interpolator:Landroid/view/animation/AccelerateDecelerateInterpolator;

    return-void
.end method


# virtual methods
.method public fadeInView(Landroid/view/View;JLuk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationStartListener;)V
    .locals 2

    const/4 v0, 0x2

    .line 29
    new-array v0, v0, [F

    fill-array-data v0, :array_0

    const-string v1, "alpha"

    invoke-static {p1, v1, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object p1

    .line 30
    invoke-virtual {p1, p2, p3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    move-result-object p2

    new-instance p3, Luk/co/deanwild/materialshowcaseview/AnimationFactory$1;

    invoke-direct {p3, p0, p4}, Luk/co/deanwild/materialshowcaseview/AnimationFactory$1;-><init>(Luk/co/deanwild/materialshowcaseview/AnimationFactory;Luk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationStartListener;)V

    invoke-virtual {p2, p3}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 48
    invoke-virtual {p1}, Landroid/animation/ObjectAnimator;->start()V

    return-void

    :array_0
    .array-data 4
        0x0
        0x3f800000    # 1.0f
    .end array-data
.end method

.method public fadeOutView(Landroid/view/View;JLuk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationEndListener;)V
    .locals 3

    const/4 v0, 0x1

    .line 53
    new-array v0, v0, [F

    const/4 v1, 0x0

    const/4 v2, 0x0

    aput v2, v0, v1

    const-string v1, "alpha"

    invoke-static {p1, v1, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object p1

    .line 54
    invoke-virtual {p1, p2, p3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    move-result-object p2

    new-instance p3, Luk/co/deanwild/materialshowcaseview/AnimationFactory$2;

    invoke-direct {p3, p0, p4}, Luk/co/deanwild/materialshowcaseview/AnimationFactory$2;-><init>(Luk/co/deanwild/materialshowcaseview/AnimationFactory;Luk/co/deanwild/materialshowcaseview/IAnimationFactory$AnimationEndListener;)V

    invoke-virtual {p2, p3}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 72
    invoke-virtual {p1}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method
